<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			window.onload=function(){
				
//				给文档添加键盘按下事件
				document.onkeydown = function(e){
//					获取事件对象
					var e = window.event||e;
//					e.keyCode  获得当前按键的键盘码
					console.log(e.keyCode)
					
					console.log(e.altKey)
				}
				
			}
		</script>
	</head>
	<body>
	</body>
</html>
